package com.baizhi.service.impl;

import com.baizhi.entity.LayuiEms;
import com.baizhi.mapper.LayuiEmsMapper;
import com.baizhi.service.LayuiEmsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhengg
 * @since 2020-07-29
 */
@Service
public class LayuiEmsServiceImpl extends ServiceImpl<LayuiEmsMapper, LayuiEms> implements LayuiEmsService {

    @Override
    public List<LayuiEms> selectEmsAndDept(Integer deptId) {

//        QueryWrapper<LayuiEms> wrapper=new QueryWrapper<>();
//
//        wrapper.eq(deptId!=null,"dept_id",deptId);

        return baseMapper.selectEmsAndDept(deptId);
    }
}
